package com.atguigu03.date;

import java.time.LocalDateTime;
import java.util.Calendar;
import java.util.Date;

/**
 * ClassName: myTest
 * Package: com.atguigu03.date
 * Description:
 *
 * @Author BuTang
 * @Create 2023/5/25 19:10
 * @Version 1.0
 */
public class myTest {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);   //Thu May 25 19:10:52 CST 2023

        //util.Date转换为sql.Date
        java.sql.Date date1 = new java.sql.Date(date.getTime()) ;
        System.out.println(date1);

        //
        System.currentTimeMillis();
    }
}
